Don't include composited childen in window clip region, update region when setting...
authorAlexander Larsson <alexl@redhat.com>
Mon, 8 Dec 2008 18:22:20 +0000 (19:22 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:08 +0000 (10:14 +0200)
gdk/gdkwindow.c

index 6a82544e5c97986abd8c36a5cbd65a391855dee2..391079d175ed6263870c24614ce5d1490361f452 100644 (file)
@@ -429,7 +429,7 @@ remove_child_area (GdkWindowObject *private,
       if (child == until)
        break;
       
-      if (!GDK_WINDOW_IS_MAPPED (child) || child->input_only)
+      if (!GDK_WINDOW_IS_MAPPED (child) || child->input_only || child->composited)
        continue;
 
       /* Ignore offscreen children, as they don't draw in their parent and
@@ -6214,6 +6214,8 @@ gdk_window_set_composited (GdkWindow *window,
 
   _gdk_windowing_window_set_composited (window, composited);
 
+  recompute_visible_regions (private, TRUE, FALSE);
+                            
   private->composited = composited;
 }